package com.example.demo.customer;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Collections;
import java.util.List;

//@Repository
//@Primary
@Repository
public interface CustomerRepository extends JpaRepository<Customer, Long> {
//    @Override
//    public List<Customer> getCustomers() {
//        // TODO 连接到真实的数据库
//        return Collections.singletonList(
//            new Customer(1L,"TODO. 实现真实的数据库", "password", "email")
//        );
//    }
}
